using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using ConfiguringApps.Infrastructure;

namespace ConfiguringApps
{
  public class StartupDevelopment
  {

    public void ConfigureServices(IServiceCollection services)
    {
      services.AddSingleton<UptimeService>();
      services.AddMvc();
    }

    public void Configure(IApplicationBuilder app, IHostingEnvironment env)
    {
      app.UseDeveloperExceptionPage();
      app.UseStatusCodePages();
      app.UseBrowserLink();
      app.UseStaticFiles();
      app.UseMvcWithDefaultRoute();
    }
  }
}
